package com.huiminpay.paymentagent.api;

import com.huiminpay.common.cache.domain.BusinessException;
import com.huiminpay.paymentagent.conf.AliConfigParam;
import com.huiminpay.paymentagent.dto.AlipayBean;
import com.huiminpay.paymentagent.dto.PaymentResponseDTO;

public interface PayChannelAgentService {

    /**
    * 调用支付宝手机WAP下单接口
    * @param aliConfigParam 支付渠道参数
    * @param alipayBean 请求支付参数
    * @return
    * @throws BusinessException
    */
    PaymentResponseDTO createPayOrderByAliWAP(AliConfigParam aliConfigParam, AlipayBean alipayBean) throws BusinessException;


    /**
     * 支付宝交易状态查询
     * @param aliConfigParam 支付渠道参数
     * @param outTradeNO 惠民平台订单号
     * @return
     */
    PaymentResponseDTO queryPayOrderByAli(AliConfigParam aliConfigParam,String outTradeNO);
}